package md.lanjing.com.module_wallet.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lxh.baselibray.util.TimeUtils;

import java.util.List;

import md.lanjing.com.module_wallet.R;
import md.lanjing.com.module_wallet.bean.ExchangeRecordResponce;


public class ExchangeRecordAdapter extends BaseQuickAdapter<ExchangeRecordResponce.DataBean,BaseViewHolder> {
    public ExchangeRecordAdapter(int layoutResId, @Nullable List<ExchangeRecordResponce.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ExchangeRecordResponce.DataBean item) {
        helper.setText(R.id.tv_usdt,item.getTokenNum()+"USDT")
                .setText(R.id.tv_cawd,item.getTokenNum()+"CAWD")
                .setText(R.id.tv_time, TimeUtils.millis2String(item.getExchangeTime()));
    }
}
